<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3-3 Vue的模版语法</title>
    <script src="../vue.js"></script>
</head>

<body>
    <div id="app">
<!--    <h1>hello</h1>
        <h1>hello</h1>
        hello
 -->
        <div>{{name}}</div>
        <div v-text="name"></div>
        <div v-html="name"></div>

<!-- 
            湖北 yk
            湖北 yk
            湖北 yk
-->

        <div>{{address + ' yk'}}</div>
        <div v-text="address + ' yk'"></div>
        <div v-html="address + ' yk'"></div>
    </div>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                name: "<h1>hello</h1>",
                address:'湖北'

            }
        })
    </script>
</body>

</html>